﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gunningine
{
    public abstract class RenderResource : IDisposable
    {
        #region IDisposable implementation

        bool _disposed = false;

        protected abstract void DisposeImpl();

        public void Dispose()
        {
            if (!this._disposed)
            {
                DisposeImpl();
            }

            this._disposed = true;
        }

        #endregion

    }
}
